package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.RecordCost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 记上课扣课时与费用明细 Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-10-06
 */
@Mapper
public interface RecordCostMapper extends BaseMapper<RecordCost> {

    @Select("select  * from record_cost where record_course_id = ${recordId} and deleted =0 limit 1")
    RecordCost getOneByRecordId(@Param("recordId") Long recordId);
}
